<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <input id="c-newhouse_id" data-rule="required" name="row[newhouse_id]" type="hidden" value="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">图片:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-url" class="form-control" size="50" name="row[url]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-url" class="btn btn-danger plupload" data-multipart={"module":"h/hux","nocrop":"1"} data-maxcount="1" data-input-id="c-url" data-mimetype="image/jpeg,image/png,image/jpg" data-multiple="false" data-preview-id="p-url"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-url"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-url"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fan')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-fan" data-rule="required" class="form-control selectpicker" name="row[fan]">
                {foreach name="fanList" item="vo"}
                <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tin')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-tin" data-rule="required" class="form-control selectpicker" name="row[tin]">
                {foreach name="tinList" item="vo"}
                <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wei')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-wei" data-rule="required" class="form-control selectpicker" name="row[wei]">
                {foreach name="weiList" item="vo"}
                <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mj')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mj" class="form-control" name="row[mj]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Msg')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-msg" class="form-control" name="row[msg]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Flag')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-flag" data-rule="required" class="form-control selectpicker" name="row[flag]">
                {foreach name="flagList" item="vo"}
                    <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_id" class="form-control" name="row[admin_id]" type="hidden" value="{:$auth->id}">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
